CVE-2025-3048
Path Traversal in AWS SAM CLI allows file copy to local cache
Description
After completing a build with AWS Serverless Application Model Command Line Interface (SAM CLI) which include symlinks, the content of those symlinks are copied to the cache of the local workspace as regular files or directories. As a result, a user who does not have access to those symlinks outside of the Docker container would now have access via the local workspace. Users should upgrade to version 1.134.0 and ensure any forked or derivative code is patched to incorporate the new fixes. After upgrading, users must re-build their applications using the sam build --use-container to update the symlinks.
INFO
Published Date :
March 31, 2025, 4:15 p.m.
Last Modified :
April 1, 2025, 8:26 p.m.
Remotely Exploit :
Yes !
Source :
ff89ba41-3aa1-4d27-914a-91399e9639e5
Affected Products
The following products are affected by CVE-2025-3048
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | ff89ba41-3aa1-4d27-914a-91399e9639e5 | ||||
CVSS 4.0 | MEDIUM | ff89ba41-3aa1-4d27-914a-91399e9639e5 |
Solution
- Upgrade AWS SAM CLI to version 1.134.0.
- Rebuild applications using 'sam build --use-container'.
Public PoC/Exploit Available at Github
CVE-2025-3048 has a 2 public
PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-3048
.
URL | Resource |
---|---|
https://aws.amazon.com/security/security-bulletins/AWS-2025-008/ | |
https://github.com/aws/aws-sam-cli/security/advisories/GHSA-pp64-wj43-xqcr |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-3048
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-3048
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Issue with AWS SAM CLI (CVE-2025-3047, CVE-2025-3048)
cve-2025-3047 cve-2025-3048
None
HTML Python Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-3048
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-3048
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by ff89ba41-3aa1-4d27-914a-91399e9639e5
Mar. 31, 2025
Action Type Old Value New Value Added Reference https://github.com/aws/aws-sam-cli/security/advisories/GHSA-pp64-wj43-xqcr -
New CVE Received by ff89ba41-3aa1-4d27-914a-91399e9639e5
Mar. 31, 2025
Action Type Old Value New Value Added Description After completing a build with AWS Serverless Application Model Command Line Interface (SAM CLI) which include symlinks, the content of those symlinks are copied to the cache of the local workspace as regular files or directories. As a result, a user who does not have access to those symlinks outside of the Docker container would now have access via the local workspace. Users should upgrade to version 1.134.0 and ensure any forked or derivative code is patched to incorporate the new fixes. After upgrading, users must re-build their applications using the sam build --use-container to update the symlinks. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N Added CWE CWE-22 Added CWE CWE-497 Added Reference https://aws.amazon.com/security/security-bulletins/AWS-2025-008/